package hawk.sit.threads;

public class PriorityRunnable implements Runnable {
    Runnable runnable;
    public int priority;
    public long SEQ;

    public PriorityRunnable(Runnable runnable, RunnablePriority priority) {
        this.runnable = runnable;
        this.priority = priority.value;
    }

    @Override
    public void run() {
        if (runnable != null) {
            runnable.run();
        }
    }
}
